package com.system.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.system.common.bean.Address;

import java.util.List;

public interface IAddressService {
    Address getAddressById(Integer id);

    void addAddress(Address address);

    void updateAddress(Address address);

    void deleteAddress(Integer id);

    List<Address> getAddressList();

    IPage<Address> getPage(Address address, Page<Address> page);

    List<Address> getAddressByUserId(Integer userid);
}
